﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace School.Pages.Admission.Reports
{
    public partial class ShowClassReport : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           
                var x = (IQueryable<int>)Session["privilage"];

                if (x.Contains(1001) == true)
                {
               
                }
               
                else
                    Response.Redirect("../Default.aspx");
           

        }

        protected void ObjClass_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
        {
            e.InputParameters["Id"] = Convert.ToInt32(Session["Class_Id"]);
            e.InputParameters["eductionalyr"] = Convert.ToInt32(Session["EductionalYear_Id"]);
        }
    }
}